package mapper;

import org.apache.ibatis.annotations.Param;
import entity.Supplier;

import java.util.List;

public interface SupplierMapper {
    public List<Supplier> getSupplier();
    public int deleteSuppliers(@Param("id") Integer id);
    public int updateSupplier(Supplier supplier);

    /**
     * 分页查询用户信息
     */
    public List<Supplier> getPage(@Param("supplier") Supplier supplier,
                                 @Param("pageBegin") Integer pageBegin,
                                 @Param("pageSize") Integer pageSize);
    /**
     * 根据条件查询总数据量
     */
    public Integer count(@Param("supplier") Supplier supplier);
    public Supplier getById(@Param("id") Long id);
    public int insertSupplier(Supplier supplier);
    public Supplier getSupCode(@Param("supCode") String supCode);
}
